package shiyan2;

class Course {
		 int xuehao;
		 String classname;
		 String place;
		 String time;
		 String teacher;

		}

		class Teacher {
		 int id;
		 String name;
		 String xingbie;
		 String course;
		 String passw;
		 
		}

		class Student {
		 int id;
		 String name;
		 String xingbie;
		 String course;
		 String major;
		 String passw;
		 public void setid(String course){
		  this.course=course;
		 }
		 


		public class text1{
		 public static void main (String args[]){
		   Teacher csy = new Teacher();
		   csy.id =123456;
		   csy.name ="zhangsan";
		   csy.xingbie="nan";
		   csy.course="math";
		   csy.passw="123456";
		   Student liming = new Student();
		   liming.id =123456;
		   liming.name ="csy";
		   liming.xingbie="nan";
		   liming.major="computer";
		   liming.passw="111111";
		   liming.setid("math");
		   Course shuxue =new Course();
		   shuxue.xuehao =222222;
		   shuxue.classname ="math";
		   shuxue.place ="0921";
		   shuxue.time ="9.21";
		   shuxue.teacher ="zhangsan";
		   System.out.println("姓名:"+liming.name);
		   System.out.println("编号:"+shuxue.xuehao);
		   System.out.println("课程:"+shuxue.classname);
		   System.out.println("上课地点"+shuxue.place);
		   System.out.println("时间"+shuxue.time);
		   System.out.println("授课教师"+shuxue.teacher);
		   
		   
		  }
		}
		

}